const prefix = this.getVariables().find(v => v.name === "environmentType")?.value;
const headers = { "Content-type": "application/json" };

fetch(`/${prefix}Basics/basics-main/system/equipmentType/listGroupByTypeCode`, { headers })
  .then(json => json.json())
  .then(res => {
    if (res.success) {
      console.log('res', res);
      this.setVariables([{ name: 'device_actions', value: [res.result] }])
    }
  });